<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/31 0031
 * Time: 09:38
 */
$redis = new Redis();

$redis->connect('127.0.0.1',6379);

$redis->auth('redis123456');

$redis->subscribe();